﻿public static partial class Constant
{
    /// <summary>
    /// 文本格式化常量表
    /// </summary>
    public static class Format
    {
        #region ----------常用文本拼接--------------

        public const string FORMAT_LV = "Lv.{0}";

        #endregion

        #region ---------- ToString 格式化 ----------

        public const string INTEGER_STRING_FORMAT = "0";

        #endregion

        #region ---------- 日期时间格式化 ----------

        public const string HH_MM_SS_TIME_FORMAT = @"hh\:mm\:ss";
        public const string yyyy_MM_dd_HH_MM_SS = " yyyy-MM-dd HH:MM:ss";

        public const string yyyyMMdd_TIME_FORMAT = "yyyyMMdd";
        public const string yyyyMMddHHMMSS_TIME_FORMAT = "yyyyMMddhhmmss";


        #endregion

        #region ---------- 富文本格式化 ----------

        public const string FONT_BOLD_RICH_FORMAT = "<b>{0}</b>";
        public const string FONT_ITALIC_RICH_FORMAT = "<i>{0}</i>";
        public const string FONT_SIZE_RICH_FORMAT = "<size={1}>{0}</size>";
        public const string FONT_COLOR_RICH_FORMAT = "<color=\"{1}\">{0}</color>";

        public const string FONT_SIZE_COLOR_RICH_FORMAT = "<color=\"#{2}\"><size={1}>{0}</size></color>";

        #endregion
    }
}
